/*
 * @Author: tanzhou tanzhou@yuantutech.com
 * @Date: 2022-09-25 18:28:06
 * @LastEditors: tanzhou tanzhou@yuantutech.com
 * @LastEditTime: 2022-09-25 22:13:32
 * @FilePath: \初始vite\src\components\demo1\data.js
 * @Description: 
 * 
 * Copyright (c) 2022 by tanzhou tanzhou@yuantutech.com, All Rights Reserved. 
 */

/**
 * @description: 路由渲染的一些数据
 * @return {
 * @params invoice 表格的一些数据
 * }
 */
let invoices = [
    {
      name: "Santa Monica",
      number: 1995,
      amount: "$10,800",
      due: "12/05/1995"
    },
    {
      name: "Stankonia",
      number: 2000,
      amount: "$8,000",
      due: "10/31/2000"
    },
    {
      name: "Ocean Avenue",
      number: 2003,
      amount: "$9,500",
      due: "07/22/2003"
    },
    {
      name: "Tubthumper",
      number: 1997,
      amount: "$14,000",
      due: "09/01/1997"
    },
    {
      name: "Wide Open Spaces",
      number: 1998,
      amount: "$4,600",
      due: "01/27/2998"
    }
  ];
  
  export function getInvoices() {
    return invoices;
  }
  export function getInvoice(number) {
    return invoices.find(
      invoice => invoice.number === number
    );
  }